depend_service = {}
local M = depend_service

-- OS: 脚本适用的平台,加载脚本是校验，any/ios/android/win
-- version: x.x.x
function M:version()
    return "android", "0.0.1"
end

-- 业务函数共五个返回值
-- 返回值1：0为完成,没有后续处理； 1为调用调用下一条命令,NextCommand为下一条命令； 2为返回结果给监听;
-- 返回值2：ErrorNum
-- 返回值3：ErrInfo
-- 返回值4：NextCommand
-- 返回值5：Result
function M:http_error(json, sourceCommand)
    print ("lua: http_error called,sourceCommand:"..sourceCommand.."\n")
    return 2, 1, "http error", sourceCommand, json
end

function M:http_get_result(json, sourceCommand)
    print ("lua: http_get_result called,sourceCommand:"..sourceCommand.."\n")
    return 2, 0, "no error", sourceCommand, json
end

function M:http_post_result(json, sourceCommand)
    print ("lua: http_post_result called,sourceCommand:"..sourceCommand.."\n")
    return 2, 0, "no error", sourceCommand, json
end

function M:sock_notify(json, sourceCommand)
    print ("lua: sock_notify called,sourceCommand:"..sourceCommand.."\n")
    return 2, 0, "no error", sourceCommand, json
end

function M:sock_recv(json, sourceCommand)
    print ("lua: sock_recv called,sourceCommand:"..sourceCommand.."\n")
    return 2, 0, "no error", sourceCommand, json
end

function M:sock_state(json, sourceCommand)
    print ("lua: sock_state called,sourceCommand:"..sourceCommand.."\n")
    return 2, 1, "no error", sourceCommand, json
end
